﻿using System;

namespace Terraria
{
	// Token: 0x02000025 RID: 37
	public class LiquidBuffer
	{
		// Token: 0x060001AD RID: 429 RVA: 0x00091E18 File Offset: 0x00090018
		public static void AddBuffer(int x, int y)
		{
			if (LiquidBuffer.numLiquidBuffer == 9999)
			{
				return;
			}
			if (Main.tile[x, y].checkingLiquid())
			{
				return;
			}
			Main.tile[x, y].checkingLiquid(true);
			Main.liquidBuffer[LiquidBuffer.numLiquidBuffer].x = x;
			Main.liquidBuffer[LiquidBuffer.numLiquidBuffer].y = y;
			LiquidBuffer.numLiquidBuffer++;
		}

		// Token: 0x060001AE RID: 430 RVA: 0x00091E88 File Offset: 0x00090088
		public static void DelBuffer(int l)
		{
			LiquidBuffer.numLiquidBuffer--;
			Main.liquidBuffer[l].x = Main.liquidBuffer[LiquidBuffer.numLiquidBuffer].x;
			Main.liquidBuffer[l].y = Main.liquidBuffer[LiquidBuffer.numLiquidBuffer].y;
		}

		// Token: 0x040001F7 RID: 503
		public const int maxLiquidBuffer = 10000;

		// Token: 0x040001F8 RID: 504
		public static int numLiquidBuffer;

		// Token: 0x040001F9 RID: 505
		public int x;

		// Token: 0x040001FA RID: 506
		public int y;
	}
}
